<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">账号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" data-source="auth/admin/selectpage" data-field="nickname"  class="form-control selectpage" name="row[admin_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Parent_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[pid]', $groupdata, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dd_user_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dd_user_id" data-rule="required" data-source="dd/user/index"  data-field="nickname" class="form-control selectpage" name="row[dd_user_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game1_proportion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-game1_proportion" data-rule="required" class="form-control" name="row[game1_proportion]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game1_refund')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-game1_refund" class="form-control" name="row[game1_refund]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game2_proportion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-game2_proportion" data-rule="required" class="form-control" name="row[game2_proportion]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Game2_refund')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-game2_refund" class="form-control" name="row[game2_refund]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Handicap')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-handicap" class="form-control" name="row[handicap]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_game1_proportion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_game1_proportion" data-rule="required" class="form-control" name="row[new_game1_proportion]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_game1_refund')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_game1_refund" class="form-control" name="row[new_game1_refund]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_game2_proportion')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_game2_proportion" data-rule="required" class="form-control" name="row[new_game2_proportion]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('New_game2_refund')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-new_game2_refund" class="form-control" name="row[new_game2_refund]" type="text">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
